
ge t = MissingMP_0
replace MissingMP_0=0

* adult outcomes (reported by individual)
foreach a of numlist 23 33 42 46 50 55{
replace Obs_I`a'=0 if Obs_I`a'==.
logit Obs_I`a' $HDC_0
predict pObs_I`a'
}

* sweep 3 (age 16) outcomes 
local Labs S16 I16 P16 T16
foreach a of local Labs{
logit Obs_`a' $HDC_0
predict pObs_`a'
} 

* Educational attainment
ge Obs_E23=1 if Obs_E20!=.
replace Obs_E23=1 if  Obs_I23==1
replace Obs_E23=1 if  Obs_I33==1
replace Obs_E23=0 if  Obs_E23==.
logit Obs_E23 $HDC_0
predict pObs_E23
drop Obs_E23

replace  MissingMP_0=t
drop t
